<!-- HTML header for doxygen 1.9.1-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.9.4" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>NumCpp: Celestial.hpp Source File</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
    <!-- ... other metadata & script includes ... -->
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeDarkModeToggle.init()
    </script>
    <script type="text/javascript"
        src="../doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeFragmentCopyButton.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-paragraph-link.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeParagraphLink.init()
    </script>
    <script type="text/javascript" src="../doxygen-awesome-css/doxygen-awesome-interactive-toc.js"></script>
    <script type="text/javascript">
        DoxygenAwesomeInteractiveToc.init()
    </script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr style="height: 56px;">
                        <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
                        <td id="projectalign" style="padding-left: 0.5em;">
                            <div id="projectname">NumCpp
                                &#160;<span id="projectnumber">2.12.1</span>
                            </div>
                            <div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part --><!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_celestial_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">Celestial.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="_celestial_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#include &quot;<a class="code" href="_cartesian_8hpp.html">NumCpp/Coordinates/Cartesian.hpp</a>&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="preprocessor">#include &quot;<a class="code" href="_error_8hpp.html">NumCpp/Core/Internal/Error.hpp</a>&quot;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="preprocessor">#include &quot;<a class="code" href="_types_8hpp.html">NumCpp/Core/Types.hpp</a>&quot;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="preprocessor">#include &quot;<a class="code" href="deg2rad_8hpp.html">NumCpp/Functions/deg2rad.hpp</a>&quot;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="preprocessor">#include &quot;<a class="code" href="dot_8hpp.html">NumCpp/Functions/dot.hpp</a>&quot;</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#include &quot;<a class="code" href="rad2deg_8hpp.html">NumCpp/Functions/rad2deg.hpp</a>&quot;</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;<a class="code" href="_nd_array_8hpp.html">NumCpp/NdArray.hpp</a>&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#include &quot;<a class="code" href="essentially_equal_8hpp.html">NumCpp/Utils/essentiallyEqual.hpp</a>&quot;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#include &quot;<a class="code" href="num2str_8hpp.html">NumCpp/Utils/num2str.hpp</a>&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#include &quot;<a class="code" href="sqr_8hpp.html">NumCpp/Utils/sqr.hpp</a>&quot;</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#include &quot;<a class="code" href="_vec3_8hpp.html">NumCpp/Vector/Vec3.hpp</a>&quot;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacenc_1_1coordinates_1_1reference__frames.html">nc::coordinates::reference_frames</a></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>{</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">   50</a></span><span class="comment"></span>    <span class="keyword">class </span><a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a3692c20924d005cba324d1972ff59c54">   56</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a3692c20924d005cba324d1972ff59c54">RA</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#acf49f473495e7a39f8185a461f8c3039">   63</a></span><span class="comment"></span>        <span class="keyword">explicit</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#acf49f473495e7a39f8185a461f8c3039">RA</a>(<span class="keywordtype">double</span> inDegrees) :</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>            degrees_(inDegrees),</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>            radians_(<a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(inDegrees))</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>            <span class="keywordflow">if</span> (inDegrees &lt; 0 || inDegrees &gt;= 360)</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>            {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input degrees must be of the range [0, 360)&quot;</span>);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>            }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>            hours_                  = <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a><span class="keyword">&gt;</span>(<a class="code hl_function" href="namespacenc.html#a832da7fc615ea4e1da7bed94a4488ea6">std::floor</a>(degrees_ / 15.));</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> decMinutes = (degrees_ - <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(hours_) * 15.) * 4.;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>            minutes_                = <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a><span class="keyword">&gt;</span>(<a class="code hl_function" href="namespacenc.html#a832da7fc615ea4e1da7bed94a4488ea6">std::floor</a>(decMinutes));</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>            seconds_                = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>((decMinutes - <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(minutes_)) * 60.);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>        }</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#af06f84fe87675cb60e75e666c407922a">   85</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#af06f84fe87675cb60e75e666c407922a">RA</a>(<a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inHours, <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inMinutes, <span class="keywordtype">double</span> inSeconds) noexcept :</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>            hours_(inHours),</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>            minutes_(inMinutes),</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>            seconds_(inSeconds)</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        {</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>            degrees_ = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(hours_) * 15. + <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(minutes_) / 4. + seconds_ / 240.;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>            radians_ = <a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(degrees_);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>        }</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e36ab92c2f8bc9254871ba9f216a588">   99</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e36ab92c2f8bc9254871ba9f216a588">radians</a>() const noexcept</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>        {</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>            <span class="keywordflow">return</span> radians_;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>        }</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aa6404fdd57da73255ee0de5b8b3ea60b">  109</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aa6404fdd57da73255ee0de5b8b3ea60b">degrees</a>() const noexcept</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>        {</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>            <span class="keywordflow">return</span> degrees_;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>        }</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aca0b8d776ff826aa39a4c8bf60b090ac">  119</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aca0b8d776ff826aa39a4c8bf60b090ac">hours</a>() const noexcept</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>        {</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>            <span class="keywordflow">return</span> hours_;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>        }</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7d2ef8bfa25a1dd3f1ce3618d11ac5ce">  129</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7d2ef8bfa25a1dd3f1ce3618d11ac5ce">minutes</a>() const noexcept</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>        {</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>            <span class="keywordflow">return</span> minutes_;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        }</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e69bbd865512642dbd6858c24e7aef5">  139</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e69bbd865512642dbd6858c24e7aef5">seconds</a>() const noexcept</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>        {</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>            <span class="keywordflow">return</span> seconds_;</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>        }</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae57aeec394d31a60595d12a67b4eb35c">  149</a></span><span class="comment"></span>        [[nodiscard]] std::string <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae57aeec394d31a60595d12a67b4eb35c">str</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>            std::string out =</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>                <span class="stringliteral">&quot;RA hms: &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(hours_) + <span class="stringliteral">&quot; hours, &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(minutes_) + <span class="stringliteral">&quot; minutes, &quot;</span>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>            out += <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(seconds_) + <span class="stringliteral">&quot; seconds\nRA degrees: &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(degrees_) + <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>            <span class="keywordflow">return</span> out;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>        }</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a884037195f11ea154452a19f3db84ae6">  160</a></span><span class="comment"></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a884037195f11ea154452a19f3db84ae6">print</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>            std::cout &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>        }</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae0f7b65acbd06a0941a9f2b7d43df89f">  172</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae0f7b65acbd06a0941a9f2b7d43df89f">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>        {</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(degrees_, inRhs.degrees_);</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>        }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#afd8a41d876bcd430e9b9c41ac14c7f61">  184</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#afd8a41d876bcd430e9b9c41ac14c7f61">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>        {</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>            <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == inRhs);</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>        }</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ac50255fa40f4a7bb7031aefbe77c3070">  195</a></span><span class="comment"></span>        <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ac50255fa40f4a7bb7031aefbe77c3070">operator&lt;&lt;</a>(std::ostream&amp; inStream, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>&amp; inRa)</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>        {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>            inStream &lt;&lt; inRa.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae57aeec394d31a60595d12a67b4eb35c">str</a>();</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>            <span class="keywordflow">return</span> inStream;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>        }</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>        <span class="comment">//====================================Attributes==============================</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>        <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>  hours_{ 0 };</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>        <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>  minutes_{ 0 };</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>        <span class="keywordtype">double</span> seconds_{ 0. };</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>        <span class="keywordtype">double</span> degrees_{ 0. };</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span>        <span class="keywordtype">double</span> radians_{ 0. };</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>    };</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>    <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">  212</a></span><span class="comment"></span>    <span class="keyword">class </span><a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>    {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>        <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">  217</a></span><span class="comment"></span>        <span class="keyword">enum class</span> <a class="code hl_enumeration" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">Sign</a></div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>        {</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>            NEGATIVE = 0,</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>            POSITIVE</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>        };</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span> </div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a243f2d36caf61e456d080ca5907f6ba5">  226</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a243f2d36caf61e456d080ca5907f6ba5">Dec</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#aeecd2a4641ad64b3a19220d0c7028a3d">  233</a></span><span class="comment"></span>        <span class="keyword">explicit</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#aeecd2a4641ad64b3a19220d0c7028a3d">Dec</a>(<span class="keywordtype">double</span> inDegrees) :</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span>            degrees_(inDegrees),</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>            radians_(<a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(inDegrees))</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>        {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>            <span class="keywordflow">if</span> (inDegrees &lt; -90 || inDegrees &gt; 90)</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>            {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input degrees must be of the range [-90, 90]&quot;</span>);</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>            }</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span> </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>            sign_                   = degrees_ &lt; 0 ? <a class="code hl_enumvalue" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9ca50546bf973283065b6ccf09faf7a580a">Sign::NEGATIVE</a> : <a class="code hl_enumvalue" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9caab6c31432785221bae58327ef5f6ea58">Sign::POSITIVE</a>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> absDegrees = <a class="code hl_function" href="namespacenc.html#a6c2c40c4efcd5018f84f9aca0c03c29d">std::abs</a>(degrees_);</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>            degreesWhole_           = <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a><span class="keyword">&gt;</span>(<a class="code hl_function" href="namespacenc.html#a832da7fc615ea4e1da7bed94a4488ea6">std::floor</a>(absDegrees));</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno">  246</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> decMinutes = (absDegrees - <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(degreesWhole_)) * 60.;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span>            minutes_                = <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a><span class="keyword">&gt;</span>(<a class="code hl_function" href="namespacenc.html#a832da7fc615ea4e1da7bed94a4488ea6">std::floor</a>(decMinutes));</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span>            seconds_                = (decMinutes - <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(minutes_)) * 60.;</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span>        }</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span> </div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a67ed76f73de9470756507b11d30ae42a">  259</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a67ed76f73de9470756507b11d30ae42a">Dec</a>(<a class="code hl_enumeration" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">Sign</a> inSign, <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inDegrees, <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inMinutes, <span class="keywordtype">double</span> inSeconds) noexcept :</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>            sign_(inSign),</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>            degreesWhole_(inDegrees),</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>            minutes_(inMinutes),</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>            seconds_(inSeconds)</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>        {</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>            degrees_ = <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(degreesWhole_) + <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>(minutes_) / 60. + seconds_ / 3600.;</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>            degrees_ *= sign_ == <a class="code hl_enumvalue" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9ca50546bf973283065b6ccf09faf7a580a">Sign::NEGATIVE</a> ? -1 : 1;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>            radians_ = <a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(degrees_);</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>        }</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a19892475f282e317b626687605a4b8ac">  276</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_enumeration" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">Sign</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a19892475f282e317b626687605a4b8ac">sign</a>() const noexcept</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span>        {</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span>            <span class="keywordflow">return</span> sign_;</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span>        }</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span> </div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a06826631dd86cf11c717c51c0db34682">  286</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a06826631dd86cf11c717c51c0db34682">degrees</a>() const noexcept</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>        {</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>            <span class="keywordflow">return</span> degrees_;</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span>        }</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a39c543fd471f182d86bb1172658319d0">  296</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a39c543fd471f182d86bb1172658319d0">radians</a>() const noexcept</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span>        {</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span>            <span class="keywordflow">return</span> radians_;</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span>        }</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span> </div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a76337e21a840ba34de81e02a60b78800">  306</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a76337e21a840ba34de81e02a60b78800">degreesWhole</a>() const noexcept</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>        {</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span>            <span class="keywordflow">return</span> degreesWhole_;</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>        }</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span> </div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a5953e8190f3a6e0558ad9cb4aa743502">  316</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a5953e8190f3a6e0558ad9cb4aa743502">minutes</a>() const noexcept</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>        {</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>            <span class="keywordflow">return</span> minutes_;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>        }</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#adc60c3122b832fa69069e29f1eb97874">  326</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#adc60c3122b832fa69069e29f1eb97874">seconds</a>() const noexcept</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span>        {</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>            <span class="keywordflow">return</span> seconds_;</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span>        }</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span> </div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a86d558ee10fd72ba329326721607a782">  336</a></span><span class="comment"></span>        [[nodiscard]] std::string <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a86d558ee10fd72ba329326721607a782">str</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>            std::string strSign = sign_ == <a class="code hl_enumvalue" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9ca50546bf973283065b6ccf09faf7a580a">Sign::NEGATIVE</a> ? <span class="stringliteral">&quot;-&quot;</span> : <span class="stringliteral">&quot;+&quot;</span>;</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>            std::string out     = <span class="stringliteral">&quot;Dec dms: &quot;</span> + strSign + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(degreesWhole_) + <span class="stringliteral">&quot; degrees, &quot;</span> +</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>                              <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(minutes_) + <span class="stringliteral">&quot; minutes, &quot;</span>;</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>            out += <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(seconds_) + <span class="stringliteral">&quot; seconds\nDec degrees = &quot;</span> + <a class="code hl_function" href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">utils::num2str</a>(degrees_) + <span class="charliteral">&#39;\n&#39;</span>;</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span>            <span class="keywordflow">return</span> out;</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span>        }</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span> </div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a626910d5937ec7d1421827ca0d2f57b1">  348</a></span><span class="comment"></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a626910d5937ec7d1421827ca0d2f57b1">print</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span>            std::cout &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span>        }</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span> </div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a9c56ad99eb0073ed03bc858bff98c259">  360</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a9c56ad99eb0073ed03bc858bff98c259">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span>        {</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">utils::essentiallyEqual</a>(degrees_, inRhs.degrees_);</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span>        }</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno">  364</span> </div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno">  365</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afbfd9a69cf4df15a91c2487b351ac35f">  372</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afbfd9a69cf4df15a91c2487b351ac35f">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno">  373</span>        {</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span>            <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == inRhs);</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span>        }</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span> </div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a317a19743e1fea6e9eee82dec9db9c97">  385</a></span><span class="comment"></span>        <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a317a19743e1fea6e9eee82dec9db9c97">operator&lt;&lt;</a>(std::ostream&amp; inStream, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a>&amp; inDec)</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span>        {</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span>            inStream &lt;&lt; inDec.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a86d558ee10fd72ba329326721607a782">str</a>();</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span>            <span class="keywordflow">return</span> inStream;</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span>        }</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span> </div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span>        <span class="comment">//====================================Attributes==============================</span></div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span>        <a class="code hl_enumeration" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">Sign</a>   sign_{ <a class="code hl_enumvalue" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9caab6c31432785221bae58327ef5f6ea58">Sign::POSITIVE</a> };</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span>        <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>  degreesWhole_{ 0 };</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span>        <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>  minutes_{ 0 };</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span>        <span class="keywordtype">double</span> seconds_{ 0. };</div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno">  397</span>        <span class="keywordtype">double</span> degrees_{ 0. };</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span>        <span class="keywordtype">double</span> radians_{ 0. };</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span>    };</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span>    <span class="comment">//================================================================================</span></div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">  403</a></span><span class="comment"></span>    <span class="keyword">class </span><a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a></div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span>    {</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aaad92a5179c96388ce428914dbeac553">  409</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aaad92a5179c96388ce428914dbeac553">Celestial</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span> </div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9ce2cf775cd519b186a2f20b3ec1a9f1">  417</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9ce2cf775cd519b186a2f20b3ec1a9f1">Celestial</a>(<span class="keywordtype">double</span> inRaDegrees, <span class="keywordtype">double</span> inDecDegrees) :</div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span>            ra_(inRaDegrees),</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>            dec_(inDecDegrees)</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span>        {</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span>            polarToCartesian();</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>        }</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span> </div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a019d6a4a4ece6d78b04df47308ef4af3">  435</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a019d6a4a4ece6d78b04df47308ef4af3">Celestial</a>(<a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>     inRaHours,</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>                  <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>     inRaMinutes,</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>                  <span class="keywordtype">double</span>    inRaSeconds,</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span>                  <a class="code hl_enumeration" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">Dec::Sign</a> inSign,</div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>                  <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>     inDecDegreesWhole,</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>                  <a class="code hl_typedef" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a>     inDecMinutes,</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span>                  <span class="keywordtype">double</span>    inDecSeconds) :</div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span>            ra_(inRaHours, inRaMinutes, inRaSeconds),</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span>            dec_(inSign, inDecDegreesWhole, inDecMinutes, inDecSeconds)</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span>        {</div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span>            polarToCartesian();</div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span>        }</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span> </div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a62d638b5c87a3147bf0a6e97141d241e">  454</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a62d638b5c87a3147bf0a6e97141d241e">Celestial</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>&amp; inRA, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a>&amp; inDec) noexcept :</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>            ra_(inRA),</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span>            dec_(inDec)</div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span>        {</div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span>            polarToCartesian();</div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span>        }</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span> </div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a146f6af039cbcba058013c12ada1cb2b">  468</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a146f6af039cbcba058013c12ada1cb2b">Celestial</a>(<span class="keywordtype">double</span> inX, <span class="keywordtype">double</span> inY, <span class="keywordtype">double</span> inZ) :</div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span>            x_(inX),</div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span>            y_(inY),</div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span>            z_(inZ)</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno">  472</span>        {</div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span>            cartesianToPolar();</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span>        }</div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span> </div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a31ee558602214df298c064fdf91eaf10">  481</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a31ee558602214df298c064fdf91eaf10">Celestial</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1_cartesian.html">Cartesian</a>&amp; inCartesianVector) :</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span>            x_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aeb435beddef879db69d5c1dff1af8e53">x</a>),</div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span>            y_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a23bbdb90f757236e0c3160656bc41c13">y</a>),</div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span>            z_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a47889ee592a590a4df206d93d102b1ef">z</a>)</div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno">  485</span>        {</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno">  486</span>            cartesianToPolar();</div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span>        }</div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno">  488</span> </div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno">  489</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ae918604b01671ee7eb1d18a16f0c0f28">  494</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ae918604b01671ee7eb1d18a16f0c0f28">Celestial</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_vec3.html">Vec3</a>&amp; inCartesianVector) :</div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span>            x_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aeb435beddef879db69d5c1dff1af8e53">x</a>),</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>            y_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a23bbdb90f757236e0c3160656bc41c13">y</a>),</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span>            z_(inCartesianVector.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a47889ee592a590a4df206d93d102b1ef">z</a>)</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span>        {</div>
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno">  499</span>            cartesianToPolar();</div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span>        }</div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno">  501</span> </div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno">  502</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a791d4046df696e4e36440753ffd3c5fd">  507</a></span><span class="comment"></span>        <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a791d4046df696e4e36440753ffd3c5fd">Celestial</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inCartesianVector)</div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span>        {</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span>            <span class="keywordflow">if</span> (inCartesianVector.<a class="code hl_function" href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">size</a>() != 3)</div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span>            {</div>
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno">  511</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;NdArray input must be of length 3.&quot;</span>);</div>
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno">  512</span>            }</div>
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno">  513</span> </div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno">  514</span>            x_ = inCartesianVector[0];</div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno">  515</span>            y_ = inCartesianVector[1];</div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>            z_ = inCartesianVector[2];</div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span> </div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span>            cartesianToPolar();</div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span>        }</div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno">  520</span> </div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa927c3373686a8618f89789e65e36a48">  526</a></span><span class="comment"></span>        [[nodiscard]] <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">Dec</a>&amp; <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa927c3373686a8618f89789e65e36a48">dec</a>() const noexcept</div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno">  527</span>        {</div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span>            <span class="keywordflow">return</span> dec_;</div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span>        }</div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span> </div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a27035489316217a64db114902079ea59">  536</a></span><span class="comment"></span>        [[nodiscard]] <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>&amp; <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a27035489316217a64db114902079ea59">ra</a>() const noexcept</div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno">  537</span>        {</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span>            <span class="keywordflow">return</span> ra_;</div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno">  539</span>        }</div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno">  540</span> </div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aeb435beddef879db69d5c1dff1af8e53">  546</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aeb435beddef879db69d5c1dff1af8e53">x</a>() const noexcept</div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span>        {</div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno">  548</span>            <span class="keywordflow">return</span> x_;</div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno">  549</span>        }</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span> </div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a23bbdb90f757236e0c3160656bc41c13">  556</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a23bbdb90f757236e0c3160656bc41c13">y</a>() const noexcept</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span>        {</div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span>            <span class="keywordflow">return</span> y_;</div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno">  559</span>        }</div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno">  560</span> </div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno">  561</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a47889ee592a590a4df206d93d102b1ef">  566</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a47889ee592a590a4df206d93d102b1ef">z</a>() const noexcept</div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno">  567</span>        {</div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno">  568</span>            <span class="keywordflow">return</span> z_;</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span>        }</div>
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno">  570</span> </div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno">  571</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">  576</a></span><span class="comment"></span>        [[nodiscard]] <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">xyz</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno">  577</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno">  578</span>            <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> out = { x_, y_, z_ };</div>
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno">  579</span>            <span class="keywordflow">return</span> out;</div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno">  580</span>        }</div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno">  581</span> </div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ad7ca1d03a77b49e1a6845233e3fb8ef4">  589</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ad7ca1d03a77b49e1a6845233e3fb8ef4">degreeSeperation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a>&amp; inOtherCelestial)<span class="keyword"> const</span></div>
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno">  590</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno">  591</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9cc629cc5a7feec5a80acce4f4e935cb">radianSeperation</a>(inOtherCelestial));</div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span>        }</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span> </div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a85579a98ee97dee68d42e736b1ecf2a2">  602</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a85579a98ee97dee68d42e736b1ecf2a2">degreeSeperation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inVector)<span class="keyword"> const</span></div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span>            <span class="keywordflow">return</span> <a class="code hl_function" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9cc629cc5a7feec5a80acce4f4e935cb">radianSeperation</a>(inVector));</div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno">  605</span>        }</div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span> </div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9cc629cc5a7feec5a80acce4f4e935cb">  614</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9cc629cc5a7feec5a80acce4f4e935cb">radianSeperation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a>&amp; inOtherCelestial)<span class="keyword"> const</span></div>
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno">  615</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>            <span class="keywordflow">return</span> std::acos(<a class="code hl_function" href="namespacenc.html#a50b693e816ecaa711b09997abaacec9a">dot</a>(<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">xyz</a>(), inOtherCelestial.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">xyz</a>()).item());</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>        }</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span> </div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af1488e9200aedcc61c9cbc52d181417a">  627</a></span><span class="comment"></span>        [[nodiscard]] <span class="keywordtype">double</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af1488e9200aedcc61c9cbc52d181417a">radianSeperation</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inVector)<span class="keyword"> const</span></div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno">  628</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>            <span class="keywordflow">if</span> (inVector.<a class="code hl_function" href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">size</a>() != 3)</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span>            {</div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span>                <a class="code hl_define" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input vector must be of length 3.&quot;</span>);</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span>            }</div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno">  633</span> </div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno">  634</span>            <span class="keywordflow">return</span> std::acos(<a class="code hl_function" href="namespacenc.html#a50b693e816ecaa711b09997abaacec9a">dot</a>(<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">xyz</a>(), inVector.<a class="code hl_function" href="classnc_1_1_nd_array.html#a548b77799088db2543ad56de2a81939f">flatten</a>()).item());</div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span>        }</div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno">  636</span> </div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno">  637</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa3367f604ff7934fce178ce31dc98d9a">  642</a></span><span class="comment"></span>        [[nodiscard]] std::string <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa3367f604ff7934fce178ce31dc98d9a">str</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno">  644</span>            std::string returnStr;</div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span>            returnStr = ra_.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae57aeec394d31a60595d12a67b4eb35c">str</a>();</div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno">  646</span>            returnStr += dec_.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a86d558ee10fd72ba329326721607a782">str</a>();</div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno">  647</span>            returnStr += <span class="stringliteral">&quot;Cartesian = &quot;</span> + <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">xyz</a>().<a class="code hl_function" href="classnc_1_1_nd_array.html#aa44f94cc8d02a56636223686f30d84f1">str</a>();</div>
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno">  648</span>            <span class="keywordflow">return</span> returnStr;</div>
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno">  649</span>        }</div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno">  650</span> </div>
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno">  651</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af655d6abdacad6003aa88b1207741eeb">  654</a></span><span class="comment"></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af655d6abdacad6003aa88b1207741eeb">print</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span><span class="keyword">        </span>{</div>
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno">  656</span>            std::cout &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno">  657</span>        }</div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno">  658</span> </div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a4802c3d4d16c479e06037fcaa4185fed">  666</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a4802c3d4d16c479e06037fcaa4185fed">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno">  667</span>        {</div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno">  668</span>            <span class="keywordflow">return</span> ra_ == inRhs.ra_ &amp;&amp; dec_ == inRhs.dec_;</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span>        }</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span> </div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno">  671</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#acbb5251279363dc6ce97be52cfe7ce4f">  678</a></span><span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#acbb5251279363dc6ce97be52cfe7ce4f">operator!=</a>(<span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a>&amp; inRhs) <span class="keyword">const</span> <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span>        {</div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span>            <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == inRhs);</div>
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno">  681</span>        }</div>
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno">  682</span> </div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a175ec4be0903210fb6afcc513d001812">  691</a></span><span class="comment"></span>        <span class="keyword">friend</span> std::ostream&amp; <a class="code hl_friend" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a175ec4be0903210fb6afcc513d001812">operator&lt;&lt;</a>(std::ostream&amp; inStream, <span class="keyword">const</span> <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">Celestial</a>&amp; inCoord)</div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno">  692</span>        {</div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno">  693</span>            inStream &lt;&lt; inCoord.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa3367f604ff7934fce178ce31dc98d9a">str</a>();</div>
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno">  694</span>            <span class="keywordflow">return</span> inStream;</div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno">  695</span>        }</div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno">  696</span> </div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno">  698</span>        <span class="comment">//====================================Attributes==============================</span></div>
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno">  699</span>        <a class="code hl_class" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">RA</a>     ra_{};</div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno">  700</span>        Dec    dec_{};</div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno">  701</span>        <span class="keywordtype">double</span> x_{ 1. };</div>
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno">  702</span>        <span class="keywordtype">double</span> y_{ 0. };</div>
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno">  703</span>        <span class="keywordtype">double</span> z_{ 0. };</div>
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno">  704</span> </div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno">  705</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span><span class="comment"></span>        <span class="keywordtype">void</span> cartesianToPolar()</div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span>        {</div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span>            <span class="keywordtype">double</span> degreesRa = <a class="code hl_function" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(std::atan2(y_, x_));</div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span>            <span class="keywordflow">if</span> (degreesRa &lt; 0)</div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno">  712</span>            {</div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno">  713</span>                degreesRa += 360;</div>
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno">  714</span>            }</div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno">  715</span>            ra_ = RA(degreesRa);</div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span> </div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno">  717</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> r          = <a class="code hl_function" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(<a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(x_) + <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(y_) + <a class="code hl_function" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(z_));</div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno">  718</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> degreesDec = <a class="code hl_function" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(std::asin(z_ / r));</div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno">  719</span>            dec_                    = Dec(degreesDec);</div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno">  720</span>        }</div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno">  721</span> </div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span>        <span class="comment">//============================================================================</span></div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span><span class="comment"></span>        <span class="keywordtype">void</span> polarToCartesian() noexcept</div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span>        {</div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno">  727</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> raRadians  = <a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(ra_.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aa6404fdd57da73255ee0de5b8b3ea60b">degrees</a>());</div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno">  728</span>            <span class="keyword">const</span> <span class="keywordtype">double</span> decRadians = <a class="code hl_function" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(dec_.<a class="code hl_function" href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a06826631dd86cf11c717c51c0db34682">degrees</a>());</div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno">  729</span> </div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno">  730</span>            x_ = <a class="code hl_function" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(raRadians) * <a class="code hl_function" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(decRadians);</div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno">  731</span>            y_ = <a class="code hl_function" href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">std::sin</a>(raRadians) * <a class="code hl_function" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(decRadians);</div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span>            z_ = <a class="code hl_function" href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">std::sin</a>(decRadians);</div>
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno">  733</span>        }</div>
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno">  734</span>    };</div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno">  735</span>} <span class="comment">// namespace nc::coordinates::reference_frames</span></div>
<div class="ttc" id="a_cartesian_8hpp_html"><div class="ttname"><a href="_cartesian_8hpp.html">Cartesian.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html"><div class="ttname"><a href="_error_8hpp.html">Error.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html_af2aff1172060367b9c5398fa097fa8fd"><div class="ttname"><a href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a></div><div class="ttdeci">#define THROW_INVALID_ARGUMENT_ERROR(msg)</div><div class="ttdef"><b>Definition:</b> Error.hpp:37</div></div>
<div class="ttc" id="a_nd_array_8hpp_html"><div class="ttname"><a href="_nd_array_8hpp.html">NdArray.hpp</a></div></div>
<div class="ttc" id="a_types_8hpp_html"><div class="ttname"><a href="_types_8hpp.html">Types.hpp</a></div></div>
<div class="ttc" id="a_vec3_8hpp_html"><div class="ttname"><a href="_vec3_8hpp.html">Vec3.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html"><div class="ttname"><a href="classnc_1_1_nd_array.html">nc::NdArray&lt; double &gt;</a></div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a055875abbe80163ca91328c0fa8ffbfa"><div class="ttname"><a href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">nc::NdArray::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4524</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a548b77799088db2543ad56de2a81939f"><div class="ttname"><a href="classnc_1_1_nd_array.html#a548b77799088db2543ad56de2a81939f">nc::NdArray::flatten</a></div><div class="ttdeci">self_type flatten() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:2847</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_aa44f94cc8d02a56636223686f30d84f1"><div class="ttname"><a href="classnc_1_1_nd_array.html#aa44f94cc8d02a56636223686f30d84f1">nc::NdArray::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4582</div></div>
<div class="ttc" id="aclassnc_1_1_vec3_html"><div class="ttname"><a href="classnc_1_1_vec3.html">nc::Vec3</a></div><div class="ttdoc">Holds a 3D vector.</div><div class="ttdef"><b>Definition:</b> Vec3.hpp:51</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_cartesian_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1_cartesian.html">nc::coordinates::Cartesian</a></div><div class="ttdoc">Cartensian coordinates.</div><div class="ttdef"><b>Definition:</b> Cartesian.hpp:45</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html">nc::coordinates::reference_frames::Celestial</a></div><div class="ttdoc">Holds a full celestial Celestial object.</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:404</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a019d6a4a4ece6d78b04df47308ef4af3"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a019d6a4a4ece6d78b04df47308ef4af3">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(uint8 inRaHours, uint8 inRaMinutes, double inRaSeconds, Dec::Sign inSign, uint8 inDecDegreesWhole, uint8 inDecMinutes, double inDecSeconds)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:435</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a146f6af039cbcba058013c12ada1cb2b"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a146f6af039cbcba058013c12ada1cb2b">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(double inX, double inY, double inZ)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:468</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a175ec4be0903210fb6afcc513d001812"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a175ec4be0903210fb6afcc513d001812">nc::coordinates::reference_frames::Celestial::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;inStream, const Celestial &amp;inCoord)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:691</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a23bbdb90f757236e0c3160656bc41c13"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a23bbdb90f757236e0c3160656bc41c13">nc::coordinates::reference_frames::Celestial::y</a></div><div class="ttdeci">double y() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:556</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a27035489316217a64db114902079ea59"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a27035489316217a64db114902079ea59">nc::coordinates::reference_frames::Celestial::ra</a></div><div class="ttdeci">const RA &amp; ra() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:536</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a31ee558602214df298c064fdf91eaf10"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a31ee558602214df298c064fdf91eaf10">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(const Cartesian &amp;inCartesianVector)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:481</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a47889ee592a590a4df206d93d102b1ef"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a47889ee592a590a4df206d93d102b1ef">nc::coordinates::reference_frames::Celestial::z</a></div><div class="ttdeci">double z() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:566</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a4802c3d4d16c479e06037fcaa4185fed"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a4802c3d4d16c479e06037fcaa4185fed">nc::coordinates::reference_frames::Celestial::operator==</a></div><div class="ttdeci">bool operator==(const Celestial &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:666</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a62d638b5c87a3147bf0a6e97141d241e"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a62d638b5c87a3147bf0a6e97141d241e">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(const RA &amp;inRA, const Dec &amp;inDec) noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:454</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a791d4046df696e4e36440753ffd3c5fd"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a791d4046df696e4e36440753ffd3c5fd">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(const NdArray&lt; double &gt; &amp;inCartesianVector)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:507</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a85579a98ee97dee68d42e736b1ecf2a2"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a85579a98ee97dee68d42e736b1ecf2a2">nc::coordinates::reference_frames::Celestial::degreeSeperation</a></div><div class="ttdeci">double degreeSeperation(const NdArray&lt; double &gt; &amp;inVector) const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:602</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a9cc629cc5a7feec5a80acce4f4e935cb"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9cc629cc5a7feec5a80acce4f4e935cb">nc::coordinates::reference_frames::Celestial::radianSeperation</a></div><div class="ttdeci">double radianSeperation(const Celestial &amp;inOtherCelestial) const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:614</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_a9ce2cf775cd519b186a2f20b3ec1a9f1"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#a9ce2cf775cd519b186a2f20b3ec1a9f1">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(double inRaDegrees, double inDecDegrees)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:417</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_aa3367f604ff7934fce178ce31dc98d9a"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa3367f604ff7934fce178ce31dc98d9a">nc::coordinates::reference_frames::Celestial::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:642</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_aa86c47d2d7762d618e2c8fececcaa594"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa86c47d2d7762d618e2c8fececcaa594">nc::coordinates::reference_frames::Celestial::xyz</a></div><div class="ttdeci">NdArray&lt; double &gt; xyz() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:576</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_aa927c3373686a8618f89789e65e36a48"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aa927c3373686a8618f89789e65e36a48">nc::coordinates::reference_frames::Celestial::dec</a></div><div class="ttdeci">const Dec &amp; dec() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:526</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_aaad92a5179c96388ce428914dbeac553"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aaad92a5179c96388ce428914dbeac553">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial()=default</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_acbb5251279363dc6ce97be52cfe7ce4f"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#acbb5251279363dc6ce97be52cfe7ce4f">nc::coordinates::reference_frames::Celestial::operator!=</a></div><div class="ttdeci">bool operator!=(const Celestial &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:678</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_ad7ca1d03a77b49e1a6845233e3fb8ef4"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ad7ca1d03a77b49e1a6845233e3fb8ef4">nc::coordinates::reference_frames::Celestial::degreeSeperation</a></div><div class="ttdeci">double degreeSeperation(const Celestial &amp;inOtherCelestial) const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:589</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_ae918604b01671ee7eb1d18a16f0c0f28"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#ae918604b01671ee7eb1d18a16f0c0f28">nc::coordinates::reference_frames::Celestial::Celestial</a></div><div class="ttdeci">Celestial(const Vec3 &amp;inCartesianVector)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:494</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_aeb435beddef879db69d5c1dff1af8e53"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#aeb435beddef879db69d5c1dff1af8e53">nc::coordinates::reference_frames::Celestial::x</a></div><div class="ttdeci">double x() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:546</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_af1488e9200aedcc61c9cbc52d181417a"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af1488e9200aedcc61c9cbc52d181417a">nc::coordinates::reference_frames::Celestial::radianSeperation</a></div><div class="ttdeci">double radianSeperation(const NdArray&lt; double &gt; &amp;inVector) const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:627</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_celestial_html_af655d6abdacad6003aa88b1207741eeb"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_celestial.html#af655d6abdacad6003aa88b1207741eeb">nc::coordinates::reference_frames::Celestial::print</a></div><div class="ttdeci">void print() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:654</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html">nc::coordinates::reference_frames::Dec</a></div><div class="ttdoc">Holds a Declination object.</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:213</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a06826631dd86cf11c717c51c0db34682"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a06826631dd86cf11c717c51c0db34682">nc::coordinates::reference_frames::Dec::degrees</a></div><div class="ttdeci">double degrees() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:286</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a19892475f282e317b626687605a4b8ac"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a19892475f282e317b626687605a4b8ac">nc::coordinates::reference_frames::Dec::sign</a></div><div class="ttdeci">Sign sign() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:276</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a243f2d36caf61e456d080ca5907f6ba5"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a243f2d36caf61e456d080ca5907f6ba5">nc::coordinates::reference_frames::Dec::Dec</a></div><div class="ttdeci">Dec()=default</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a317a19743e1fea6e9eee82dec9db9c97"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a317a19743e1fea6e9eee82dec9db9c97">nc::coordinates::reference_frames::Dec::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;inStream, const Dec &amp;inDec)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:385</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a39c543fd471f182d86bb1172658319d0"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a39c543fd471f182d86bb1172658319d0">nc::coordinates::reference_frames::Dec::radians</a></div><div class="ttdeci">double radians() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:296</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a5953e8190f3a6e0558ad9cb4aa743502"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a5953e8190f3a6e0558ad9cb4aa743502">nc::coordinates::reference_frames::Dec::minutes</a></div><div class="ttdeci">uint8 minutes() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:316</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a626910d5937ec7d1421827ca0d2f57b1"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a626910d5937ec7d1421827ca0d2f57b1">nc::coordinates::reference_frames::Dec::print</a></div><div class="ttdeci">void print() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:348</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a67ed76f73de9470756507b11d30ae42a"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a67ed76f73de9470756507b11d30ae42a">nc::coordinates::reference_frames::Dec::Dec</a></div><div class="ttdeci">Dec(Sign inSign, uint8 inDegrees, uint8 inMinutes, double inSeconds) noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:259</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a76337e21a840ba34de81e02a60b78800"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a76337e21a840ba34de81e02a60b78800">nc::coordinates::reference_frames::Dec::degreesWhole</a></div><div class="ttdeci">uint8 degreesWhole() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:306</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a86d558ee10fd72ba329326721607a782"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a86d558ee10fd72ba329326721607a782">nc::coordinates::reference_frames::Dec::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:336</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_a9c56ad99eb0073ed03bc858bff98c259"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#a9c56ad99eb0073ed03bc858bff98c259">nc::coordinates::reference_frames::Dec::operator==</a></div><div class="ttdeci">bool operator==(const Dec &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:360</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_adc60c3122b832fa69069e29f1eb97874"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#adc60c3122b832fa69069e29f1eb97874">nc::coordinates::reference_frames::Dec::seconds</a></div><div class="ttdeci">double seconds() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:326</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_aeecd2a4641ad64b3a19220d0c7028a3d"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#aeecd2a4641ad64b3a19220d0c7028a3d">nc::coordinates::reference_frames::Dec::Dec</a></div><div class="ttdeci">Dec(double inDegrees)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:233</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_afbfd9a69cf4df15a91c2487b351ac35f"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afbfd9a69cf4df15a91c2487b351ac35f">nc::coordinates::reference_frames::Dec::operator!=</a></div><div class="ttdeci">bool operator!=(const Dec &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:372</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_afcdc0ed1532a94a817d44eaaa1fc5a9c"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9c">nc::coordinates::reference_frames::Dec::Sign</a></div><div class="ttdeci">Sign</div><div class="ttdoc">Struct Enum for positive or negative Dec angle.</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:218</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_afcdc0ed1532a94a817d44eaaa1fc5a9ca50546bf973283065b6ccf09faf7a580a"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9ca50546bf973283065b6ccf09faf7a580a">nc::coordinates::reference_frames::Dec::Sign::NEGATIVE</a></div><div class="ttdeci">@ NEGATIVE</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_dec_html_afcdc0ed1532a94a817d44eaaa1fc5a9caab6c31432785221bae58327ef5f6ea58"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_dec.html#afcdc0ed1532a94a817d44eaaa1fc5a9caab6c31432785221bae58327ef5f6ea58">nc::coordinates::reference_frames::Dec::Sign::POSITIVE</a></div><div class="ttdeci">@ POSITIVE</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html">nc::coordinates::reference_frames::RA</a></div><div class="ttdoc">Holds a right ascension object.</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:51</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_a3692c20924d005cba324d1972ff59c54"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a3692c20924d005cba324d1972ff59c54">nc::coordinates::reference_frames::RA::RA</a></div><div class="ttdeci">RA()=default</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_a7d2ef8bfa25a1dd3f1ce3618d11ac5ce"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7d2ef8bfa25a1dd3f1ce3618d11ac5ce">nc::coordinates::reference_frames::RA::minutes</a></div><div class="ttdeci">uint8 minutes() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:129</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_a7e36ab92c2f8bc9254871ba9f216a588"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e36ab92c2f8bc9254871ba9f216a588">nc::coordinates::reference_frames::RA::radians</a></div><div class="ttdeci">double radians() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:99</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_a7e69bbd865512642dbd6858c24e7aef5"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a7e69bbd865512642dbd6858c24e7aef5">nc::coordinates::reference_frames::RA::seconds</a></div><div class="ttdeci">double seconds() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:139</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_a884037195f11ea154452a19f3db84ae6"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#a884037195f11ea154452a19f3db84ae6">nc::coordinates::reference_frames::RA::print</a></div><div class="ttdeci">void print() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:160</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_aa6404fdd57da73255ee0de5b8b3ea60b"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aa6404fdd57da73255ee0de5b8b3ea60b">nc::coordinates::reference_frames::RA::degrees</a></div><div class="ttdeci">double degrees() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:109</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_ac50255fa40f4a7bb7031aefbe77c3070"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ac50255fa40f4a7bb7031aefbe77c3070">nc::coordinates::reference_frames::RA::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;inStream, const RA &amp;inRa)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:195</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_aca0b8d776ff826aa39a4c8bf60b090ac"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#aca0b8d776ff826aa39a4c8bf60b090ac">nc::coordinates::reference_frames::RA::hours</a></div><div class="ttdeci">uint8 hours() const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:119</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_acf49f473495e7a39f8185a461f8c3039"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#acf49f473495e7a39f8185a461f8c3039">nc::coordinates::reference_frames::RA::RA</a></div><div class="ttdeci">RA(double inDegrees)</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:63</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_ae0f7b65acbd06a0941a9f2b7d43df89f"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae0f7b65acbd06a0941a9f2b7d43df89f">nc::coordinates::reference_frames::RA::operator==</a></div><div class="ttdeci">bool operator==(const RA &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:172</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_ae57aeec394d31a60595d12a67b4eb35c"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#ae57aeec394d31a60595d12a67b4eb35c">nc::coordinates::reference_frames::RA::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:149</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_af06f84fe87675cb60e75e666c407922a"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#af06f84fe87675cb60e75e666c407922a">nc::coordinates::reference_frames::RA::RA</a></div><div class="ttdeci">RA(uint8 inHours, uint8 inMinutes, double inSeconds) noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:85</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1reference__frames_1_1_r_a_html_afd8a41d876bcd430e9b9c41ac14c7f61"><div class="ttname"><a href="classnc_1_1coordinates_1_1reference__frames_1_1_r_a.html#afd8a41d876bcd430e9b9c41ac14c7f61">nc::coordinates::reference_frames::RA::operator!=</a></div><div class="ttdeci">bool operator!=(const RA &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Celestial.hpp:184</div></div>
<div class="ttc" id="adeg2rad_8hpp_html"><div class="ttname"><a href="deg2rad_8hpp.html">deg2rad.hpp</a></div></div>
<div class="ttc" id="adot_8hpp_html"><div class="ttname"><a href="dot_8hpp.html">dot.hpp</a></div></div>
<div class="ttc" id="aessentially_equal_8hpp_html"><div class="ttname"><a href="essentially_equal_8hpp.html">essentiallyEqual.hpp</a></div></div>
<div class="ttc" id="anamespacenc_1_1coordinates_1_1reference__frames_html"><div class="ttname"><a href="namespacenc_1_1coordinates_1_1reference__frames.html">nc::coordinates::reference_frames</a></div><div class="ttdef"><b>Definition:</b> AER.hpp:36</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a16a6ad93c420ed7a003d9921bee1a7c6"><div class="ttname"><a href="namespacenc_1_1utils.html#a16a6ad93c420ed7a003d9921bee1a7c6">nc::utils::num2str</a></div><div class="ttdeci">std::string num2str(dtype inNumber)</div><div class="ttdef"><b>Definition:</b> num2str.hpp:44</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_a963b90e7c9a3b057a924298750ddf74c"><div class="ttname"><a href="namespacenc_1_1utils.html#a963b90e7c9a3b057a924298750ddf74c">nc::utils::essentiallyEqual</a></div><div class="ttdeci">bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept</div><div class="ttdef"><b>Definition:</b> essentiallyEqual.hpp:49</div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_ae792e10a24b7e5b8291a6c31a28a4512"><div class="ttname"><a href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">nc::utils::sqr</a></div><div class="ttdeci">constexpr dtype sqr(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqr.hpp:42</div></div>
<div class="ttc" id="anamespacenc_html_a2cdc1c791ab98eb708ba5662ffb82b39"><div class="ttname"><a href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">nc::deg2rad</a></div><div class="ttdeci">constexpr auto deg2rad(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> deg2rad.hpp:47</div></div>
<div class="ttc" id="anamespacenc_html_a3fa4e582cdeef0716309ad51378f2983"><div class="ttname"><a href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">nc::sin</a></div><div class="ttdeci">auto sin(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sin.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html_a50b693e816ecaa711b09997abaacec9a"><div class="ttname"><a href="namespacenc.html#a50b693e816ecaa711b09997abaacec9a">nc::dot</a></div><div class="ttdeci">NdArray&lt; dtype &gt; dot(const NdArray&lt; dtype &gt; &amp;inArray1, const NdArray&lt; dtype &gt; &amp;inArray2)</div><div class="ttdef"><b>Definition:</b> dot.hpp:47</div></div>
<div class="ttc" id="anamespacenc_html_a6c2c40c4efcd5018f84f9aca0c03c29d"><div class="ttname"><a href="namespacenc.html#a6c2c40c4efcd5018f84f9aca0c03c29d">nc::abs</a></div><div class="ttdeci">auto abs(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> abs.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html_a736de91eb8f79bfaf4dc92d7161f1c87"><div class="ttname"><a href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">nc::cos</a></div><div class="ttdeci">auto cos(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> cos.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html_a832da7fc615ea4e1da7bed94a4488ea6"><div class="ttname"><a href="namespacenc.html#a832da7fc615ea4e1da7bed94a4488ea6">nc::floor</a></div><div class="ttdeci">dtype floor(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> floor.hpp:48</div></div>
<div class="ttc" id="anamespacenc_html_a8c8fc041b633785104c583a8ce3d9cef"><div class="ttname"><a href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">nc::rad2deg</a></div><div class="ttdeci">constexpr auto rad2deg(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> rad2deg.hpp:48</div></div>
<div class="ttc" id="anamespacenc_html_a941a5a1ffb61387495a6f23dc4036287"><div class="ttname"><a href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">nc::sqrt</a></div><div class="ttdeci">auto sqrt(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqrt.hpp:48</div></div>
<div class="ttc" id="anamespacenc_html_a9ba5a0aa26753a185985b8273fb9062d"><div class="ttname"><a href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">nc::uint8</a></div><div class="ttdeci">std::uint8_t uint8</div><div class="ttdef"><b>Definition:</b> Types.hpp:42</div></div>
<div class="ttc" id="anum2str_8hpp_html"><div class="ttname"><a href="num2str_8hpp.html">num2str.hpp</a></div></div>
<div class="ttc" id="arad2deg_8hpp_html"><div class="ttname"><a href="rad2deg_8hpp.html">rad2deg.hpp</a></div></div>
<div class="ttc" id="asqr_8hpp_html"><div class="ttname"><a href="sqr_8hpp.html">sqr.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_34171bd951b13a53aa9f237277a18e40.html">NumCpp</a></li><li class="navelem"><a class="el" href="dir_821f0d92e31f34ac47de77ab611d6024.html">Coordinates</a></li><li class="navelem"><a class="el" href="dir_6282b7c0ec828c4b60830a3c405ff9e8.html">ReferenceFrames</a></li><li class="navelem"><a class="el" href="_celestial_8hpp.html">Celestial.hpp</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
